package org.cbioportal.legacy.web.parameter;

import jakarta.validation.constraints.AssertTrue;
import jakarta.validation.constraints.Size;
import java.util.List;

public class MutationSpectrumFilter {

  @Size(min = 1, max = PagingConstants.MAX_PAGE_SIZE)
  private List<String> sampleIds;

  private String sampleListId;

  @AssertTrue
  private boolean isEitherSampleListIdOrSampleIdsPresent() {
    return sampleListId != null ^ sampleIds != null;
  }

  public List<String> getSampleIds() {
    return sampleIds;
  }

  public void setSampleIds(List<String> sampleIds) {
    this.sampleIds = sampleIds;
  }

  public String getSampleListId() {
    return sampleListId;
  }

  public void setSampleListId(String sampleListId) {
    this.sampleListId = sampleListId;
  }
}
